import request from "@/request/index.js";

const auth = "auth"; //http://101.42.107.47:30019文档
const base = "base"; //http://101.42.107.47:30020文档
const zhpt = "zhpt"; //http://101.42.107.47:30018文档

//获取投资机构列表
export const getInvestListApi = (data) => {
    return request({
        url: `/api/${zhpt}/investors/search`,
        method: "post",
        data,
    });
};

//删除启用禁用
export const operateInvestApi = (data) => {
    return request({
        url: `/api/${zhpt}/investors/batch`,
        method: "post",
        data,
    });
};

//获取企业详情
export const getCompanyDetailApi = (params) => {
    return request({
        url: `/api/${zhpt}/company/info`,
        method: "get",
        params,
    });
};

//新增投资机构
export const addOrganizationApi = (data) => {
    return request({
        url: `/api/${zhpt}/investors/add`,
        method: "post",
        data,
    });
};

//获取投资机构详情
export const organizationDetailApi = (params) => {
    return request({
        url: `/api/${zhpt}/investors/search/info`,
        method: "get",
        params,
    });
};

//编辑投资机构
export const editOrganizationApi = (data) => {
    return request({
        url: `/api/${zhpt}/investors/edit`,
        method: "post",
        data,
    });
};